package com.trainshop.sms.manage;

import java.rmi.RemoteException;
import java.util.Date;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

public class TestTaobao {
	
	public static void main(String args[]) throws RemoteException, InterruptedException {
		
		try {
//			SmsManager.getInstance().send("18515163440", "{\"code\":\"刘欢\",\"msg\":\"今日餐食计划完成\"}","plan",0);
//			SmsManager.getInstance().send("18515163440", "{\"code\":\"123456\",\"product\":\"畅之旅\"}","login",0);
			SmsManager.getInstance().send("18515163440", "{\"code\":\"50\"}","redgift");
		} catch (WrongPhoneException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("发送成功");
		ResourceBundle bundle=PropertyResourceBundle.getBundle("sms");
		System.out.println(bundle.getString("taobaoUrl"));
	}
	
}
